﻿using System;

namespace TicTacToeControl
{

    public class Player
    {
        private String _name;
        private int _wins;
        private int _losses;
        private int _identity;

        public Player(int ID)
        {
            _identity = ID;
        }

        public Player(String name, int ID)
        {
            _name = name;
            _identity = ID;
        }

        public String Name
        {
            get { return _name; }
            set { _name = value; }
        }

        public int Wins
        {
            get { return _wins; }
        }

        public int Identity
        {
            get { return _identity; }
            set { _identity = value; }
        }

        public int Losses
        {
            get { return _losses; }
        }

        public void AddWin()
        {
            _wins++;
        }

        public void AddLoss()
        {
            _losses++;
        }
    }
}
